import request from '@/plugins/axios/request';
const baseURL = process.env.VUE_APP_BASE_API;
// // [人才接口]列表
// export function talentsList(data) {
//   return request({
//     url: `${baseURL}/tech-talents/list`,
//     method: "post",
//     data: data,
//   });
// }
// [人才接口]入库
export function putIn(talentsId) {
  return request({
    url: `${baseURL}/tech-talents/change/` + talentsId,
    method: "get",
  });
}

// [部门接口]下拉框
export function depOpt() {
  return request({
    url: `${baseURL}/department/select`,
    method: "get",
  });
}
// [标签接口]下拉框
export function tagOpt() {
  return request({
    url: `${baseURL}/tech-label/select`,
    method: "get",
  });
}
// [代码接口]下拉框
export function typeOpt() {
  return request({
    url: `${baseURL}/tech-dict/select`,
    method: "get",
    params: {
      value: "科研人才管理",
    },
  });
}
// [人才接口]更新
export function updateTalents(data) {
  return request({
    url: `${baseURL}/tech-talents/update`,
    method: "post",
    data,
  });
}



// [人才接口]人才信息
export function talentsInfo(data) {
  return request({
    url: `${baseURL}/tech-talents/information/` + data,
    method: "get",
  });
}

// [人才接口]现有用户添加人才 查询列表
export function memberList(data) {
  return request({
    url: `${baseURL}/tech-talents/memberList`,
    method: "post",
    data,
  });
}
// [人才接口]现有用户添加人才
export function useExistingUser(data) {
  return request({
    url: `${baseURL}/tech-talents/useExistingUser`,
    method: "post",
    data,
  });
}






